package org.zcq100.DuckDemo;

public class ToyDuck extends Duck {
public ToyDuck(){
	this.flyBehavior=new FlyWithWind();
	this.quackBehavior=new ToyDuckQuack();
}
}

class RealDuck extends Duck {
	public RealDuck(){
		this.flyBehavior=new FlyWithGlide();
		this.quackBehavior=new RealDuckQuack();
	}
}
